package bean;

import java.sql.Date;

public class Shop {
	private int sid;
	private String sname;
	private String sprice;
	private Date time;
	//副表
	private int tid;
	private String tname;
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getSprice() {
		return sprice;
	}
	public void setSprice(String sprice) {
		this.sprice = sprice;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public int getTid() {
		return tid;
	}
	public void setTid(int tid) {
		this.tid = tid;
	}
	public String getTname() {
		return tname;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	@Override
	public String toString() {
		return "Shop [sid=" + sid + ", sname=" + sname + ", sprice=" + sprice
				+ ", time=" + time + ", tid=" + tid + ", tname=" + tname + "]";
	}
	public Shop(int sid, String sname, String sprice, Date time, int tid,
			String tname) {
		super();
		this.sid = sid;
		this.sname = sname;
		this.sprice = sprice;
		this.time = time;
		this.tid = tid;
		this.tname = tname;
	}
	public Shop() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
